<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="cn.netjava.pojo.Article;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>this is my person article page</title>
    <link rel="stylesheet" type="text/css" href="css/personarticle.css" />
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div id="container">
       <div id="front">
          <jsp:include page="personfront.jsp"></jsp:include>
       </div> 
       
       <div id="main">
          <div id="left">
             <div class="left_column">
                <%List<Article> articleLifeList = (List<Article>)request.getAttribute("personarticlelifelist"); %>     
                <div class="left_title">生活
                </div>
                
                <div class="left_content">
                   <table>
	                 <%if(null!=articleLifeList){
	                 for(Article article:articleLifeList){ %>
	                 <tr>
	                     <td width="450" height="30">标题:<a href="showonearticle.cn?articleid=<%=article.getId() %>&&uid=<%=article.getUser().getId() %>"><%=article.getArticle_title() %></a></td>
	                     <td width="250" height="30">时间:<%=article.getIns_dt() %></td>
	                  </tr>
	                 <%}} %>
	               </table>  
                </div>            
                
                <%List<Article> articleStudyList = (List<Article>)request.getAttribute("personarticlestudylist"); %>     
                <div class="left_title">学习
                </div>
                
                <div class="left_content">
                   <table>
	                 <%if(null!=articleStudyList){
	                 for(Article article:articleStudyList){ %>
	                 <tr>
	                     <td width="450" height="30">标题:<a href="showonearticle.cn?articleid=<%=article.getId() %>&&uid=<%=article.getUser().getId() %>"><%=article.getArticle_title() %></a></td>
	                     <td width="250" height="30">时间:<%=article.getIns_dt() %></td>
	                  </tr>
	                 <%}} %>
	               </table>  
                </div>
                
                <%List<Article> articleWorkList = (List<Article>)request.getAttribute("personarticleworklist"); %>     
                <div class="left_title">生活
                </div>
                
                <div class="left_content">
                   <table>
	                 <%if(null!=articleWorkList){
	                 for(Article article:articleWorkList){ %>
	                 <tr>
	                     <td width="450" height="30">标题:<a href="showonearticle.cn?articleid=<%=article.getId() %>&&uid=<%=article.getUser().getId() %>"><%=article.getArticle_title() %></a></td>
	                     <td width="250" height="30">时间:<%=article.getIns_dt() %></td>
	                  </tr>
	                 <%}} %>
	               </table>  
                </div>
             </div>
             
          </div>
          
          <div id="right">
             <div id="right_colum">
                   <div id="right_title">我的日记
                   </div>
                   
                   <div id="right_content">
                      <ul>
                         <li><a href="">生活</a></li>
                         <li><a href="">学习</a></li>
                         <li><a href="">工作</a></li>
                      </ul>
                   </div>
               </div> 
          </div>
       </div>
       
      <jsp:include page="../footer.jsp"></jsp:include>

    </div>   
  </body>
</html>
